package com.feng.annotation.utils;

import java.io.Serializable;

/**
 * @author Lee
 * @date 2019/3/9
 */
public class ResponseResult implements Serializable {

    public final static int SUCCESS = 1;

    public final static int FAIL = 0;

    private int status;

    private Object data;

    private String message;

    public ResponseResult(int status,Object data,String message) {
        this.status = status;
        this.data = data;
        this.message = message;
    }

    public ResponseResult() {
    }

    public static ResponseResult successNoDataAndMessage(){
        return new ResponseResult(ResponseResult.SUCCESS,null,null);
    }

    public static ResponseResult failNoDataAndMessage(){
        return new ResponseResult(ResponseResult.FAIL,null,null);
    }
}
